<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<div id="inOutContainer" class="box tabbedBox tabs">
	<div class="header">
		<ul>
			<li><a class="current" href="#inDetail">入库明细</a></li>
			<li><a href="#projectUsedDetail">项目使用明细</a></li>
			<!-- <li><a href="#discardDetail">报废明细</a></li> -->

		</ul>
		<h2>
			&nbsp;<input id="id" name="id" type="hidden" value="${id}" />
		</h2>
	</div>

	<div style="padding:0" class="content tabbed">
		<div id="inDetail">
			<isperp:grid url="sparepart/sparepartIn/inSptlist?sparepartId="
				showSearchbar="false" gridId="sparepartInGrid"
				cusViewUrl="sparepart/sparepartIn/old/view"
				urlExtScript="function(){return $('#id').val();}" pager="true"
				ondbClickRowEvent="sparepartInGrid.view(rowid);" cusDialogSize="big">
				<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="code" title="编号" width="100">
				</isperp:column>
				<isperp:column name="instock_date" title="入库时间" width="100">
			 	</isperp:column>
			 	<isperp:column name="quantity" title="数量" width="80">
				</isperp:column>
				<isperp:column name="memo" title="描述" width="180">
				</isperp:column>
				</jsp:body>
			</isperp:grid>
		</div>
		<div id="projectUsedDetail">
			<isperp:grid url="sparepart/sparepart/old/findSparepartProjectInUseExtend?sparepartId="
				showSearchbar="false" gridId="projectUsedGrid"
				cusViewUrl="sparepart/sparepart/viewSptEdit"
				urlExtScript="function(){return $('#id').val();}"
				cusDialogSize="big">
				<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="bscode" title="流水号" width="70">
				</isperp:column>
				<isperp:column name="project_name" title="所属项目" width="110">
				</isperp:column>
				<isperp:column name="code" title="编号" width="90">
				</isperp:column>
				<isperp:column name="name" title="名称" width="70">
				</isperp:column>
				<isperp:column name="model" title="型号" width="60">
				</isperp:column>
				<isperp:column name="type_key" title="操作类型" width="70">
				</isperp:column>
				<%-- <isperp:column name="price" title="单价" width="60">
				</isperp:column>
				<isperp:column name="sumprice" title="总价" width="60">
				</isperp:column> --%>
				<isperp:column name="opquantity" title="数量" width="80">
				</isperp:column>
				<%-- <isperp:column name="use_man_name" title="责任人" width="70">
				</isperp:column> --%>
				
				</jsp:body>
			</isperp:grid>
		</div>

		<%-- <div id="discardDetail">
			<isperp:grid
				url="sparepart/sparepartDiscard/discardSptlist?sparepartId="
				cusViewUrl="sparepart/sparepartDiscardd/view" showSearchbar="false"
				gridId="sparepartDiscardGrid"
				urlExtScript="function(){return $('#id').val();}"
				ondbClickRowEvent="sparepartInGrid.view(rowid);" cusDialogSize="big">
				<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="code" title="编号" width="100">
				</isperp:column>
				<isperp:column name="discard_date" title="报废时间" width="100">
				<isperp:formatoptions newformat="Y-m-d H:i" srcformat="U"></isperp:formatoptions>
				</isperp:column>
				<isperp:column name="quantity" title="数量" width="80">
				</isperp:column>
				<isperp:column name="memo" title="描述" width="180">
				</isperp:column>
				
				</jsp:body>
			</isperp:grid>
		</div> --%>
	</div>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#inOutContainer").tabs();

		});
	</script>